//
//  ZYDealLockDetector.h
//  ZYWebImage
//
//  Created by wangzhipan on 2025/5/3.
//  检测死锁

#import <Foundation/Foundation.h>
/**
 * 死锁检测器
 * 用于检测主线程死锁，防止应用无响应
 */
NS_ASSUME_NONNULL_BEGIN

@interface ZYDealLockDetector : NSObject
+ (instancetype)sharedInstance;

//默认为4秒
- (BOOL)startWithThreshold:(NSTimeInterval)threshold;

- (BOOL)start;

- (void)stop;

- (BOOL)isRunning;
@end

NS_ASSUME_NONNULL_END
